Roblox Studio - How to make Smooth Player Run Script

  Рет қаралды 823

Stars

Stars

Күн бұрын

Script Below
-- Services --
local UIS = game:GetService("UserInputService")
local TS = game:GetService("TweenService")
-- Variables --
local Player = game.Players.LocalPlayer
local HUM = Player.Character:FindFirstChild("Humanoid")
-- Settings --
local RunSpeed = 30
local BaseSpeed = 16
local TransitionTime = 2
local Key = "LeftShift"
-- Script --
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode[Key] then
TS:Create(HUM, TweenInfo.new(TransitionTime), {WalkSpeed = RunSpeed}):Play()
end
end)
UIS.InputEnded:Connect(function(input)
if input.KeyCode == Enum.KeyCode[Key] then
TS:Create(HUM, TweenInfo.new(TransitionTime), {WalkSpeed = BaseSpeed}):Play()
end
end)

Пікірлер: 16
@stars7438
@stars7438 19 күн бұрын
This video seems to do really well, I'm happy all of you are enjoying it and finding it useful. Be sure to check out my other videos. I made a new video about making a Smooth Camera, here is the link for it, I hope you'll enjoy it Roblox Studio - Smooth Camera : kzbin.info/www/bejne/rl7Ec5KOnKuFjpYsi=HsFFjdEfZPC3pxUL
@Vukyrium
@Vukyrium 21 күн бұрын
Straight to the point. Concise and easy to learn. Much thanks! Keep doing these tutorials. Love you man!
@nesko6538
@nesko6538 15 күн бұрын
Hvala puno brate na ovome
@ganeujt3578
@ganeujt3578 21 күн бұрын
Very nice video,you will go far
@7_GI
@7_GI 20 күн бұрын
thank you very much❤ + we need tutorial how to make shop dealer
@stars7438
@stars7438 20 күн бұрын
What kind of shop dealer were you thinking of? Would it be entirely GUI based or a mix of GUI and camera pointing to the thing you want to buy? Or perhaps similar to Lumber Tycoon 2 system where you drag items on the counter and buy them that way, It could also be done by pressing a button or clicking on items you want to buy that would trigger GUI for buying them?
@7_GI
@7_GI 20 күн бұрын
@@stars7438 I WANT SWORD DEALER LIKE ONE PIECE GAME ( BLOX FRUIT , KING LEGACY ) PRESS BUTTON AND I WILL GET IT
@_skribl
@_skribl 20 күн бұрын
A Lerp function with deltatime calculation is better for most cases but otherwise the code is pretty good
@costaskalt
@costaskalt 21 күн бұрын
really cool video, can you show us how to make mobile only UI for running?
@stars7438
@stars7438 20 күн бұрын
Yes I will, thanks for the idea!
@stars7438
@stars7438 20 күн бұрын
Here is the link for the video you requested! : ) kzbin.info/www/bejne/p3-VmnSAmseMpbc
@costaskalt
@costaskalt 20 күн бұрын
@@stars7438 that was so fast, thank you!
@Spookyma2
@Spookyma2 18 күн бұрын
Cool
@cyrusdevs
@cyrusdevs 20 күн бұрын
Not the best way to make a player's speed accelerate but great for beginners!
@letmebealoneplease
@letmebealoneplease 15 күн бұрын
hey would like to be a scripter for my friend kingdom hearts game
@stars7438
@stars7438 15 күн бұрын
I'd love to but I'm currently occupied on a project of my own, so I'd have to reject your offer for now, thanks for the offer, I'm glad you think I'd be a good fit for the team!
I recreated KARLSON, (to bring back Dani)
8:21
AboveTuna
Рет қаралды 841 М.
USING HACKS TO TEST MY STAFF
18:25
Skeppy
Рет қаралды 289 М.
Roblox Studio - How to make Sliding Doors
8:43
Stars
Рет қаралды 388
Roblox Studio - How to make Custom Bars
7:40
Stars
Рет қаралды 2,2 М.
I Made a Fake Warning to Scare Roblox Players
16:31
ByteBlox
Рет қаралды 2,2 МЛН
What is the best animation rig for Roblox videos? (R6 Vs R15 Breakdown)
14:09
Roblox Specialized Video Production
Рет қаралды 220 М.
Are these free drawing apps worth it? (for PC)
23:49
pikat
Рет қаралды 969 М.
Making a Game About Weak Points
21:27
Emis
Рет қаралды 1,1 МЛН
The World Resets every 5 Minutes, Can we beat it?
19:11
Baablu
Рет қаралды 634 М.
I Coded Minecraft Features Nobody Asked For...
28:58
Knarfy
Рет қаралды 633 М.