Relative Content

Tag Archive for luaroblox

Data Store Won’t Update In Roblox

I have been writing a script in Roblox that updates a players’ Money value in a folder inserted in leaderstats. Bascilly how everyone creates a leaderboard. The Money value is changed by a ProximityPrompt``Triggered``Event. It is first set off a data store script. I am very new to Data Store.

Pressing “W” or “A” makes me run but pressing both stops the animation

local UIS = game:GetService(‘UserInputService’) local Player = game.Players.LocalPlayer local Character = Player.Character UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.A then Character.Humanoid.WalkSpeed = 22 –run speed local Anim = Instance.new(‘Animation’) Anim.AnimationId = ‘rbxassetid://18686242456’ PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Play() end end) UIS.InputEnded:connect(function(input) if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.A then Character.Humanoid.WalkSpeed = 16 –default walk […]

Pressing “W” or “A” makes me run but pressing both stops the animation

local UIS = game:GetService(‘UserInputService’) local Player = game.Players.LocalPlayer local Character = Player.Character UIS.InputBegan:connect(function(input) if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.A then Character.Humanoid.WalkSpeed = 22 –run speed local Anim = Instance.new(‘Animation’) Anim.AnimationId = ‘rbxassetid://18686242456’ PlayAnim = Character.Humanoid:LoadAnimation(Anim) PlayAnim:Play() end end) UIS.InputEnded:connect(function(input) if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.A then Character.Humanoid.WalkSpeed = 16 –default walk […]