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 […]

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 […]

My server scripts (with different parents) referencing script.Parent seem to be referencing all of their parents

I have a teleporter system where when a player touches a part, they get put into an elevator, a countdown starts, and the first player to enter the elevator gets to set some different options like the map and difficulty. This all works properly if there is only one elevator, but when I duplicate the elevator and someone enters one, the gui gets updated on all of the elevators and when the player leaves the elevator it loops through all of the elevator’s exit locations and puts the player at the last one.

How can I make a time table for events in Roblox Studio?

I’m making a game where at certain times of the (in-game) day, a GUI will come up saying “It’s Lunchtime” and things like that for the server to see, as well as a teleport button to go to the room where the event is being held.