Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Works in Studio, but not in real game. Help?

Asked by 9 years ago

This works only when i am in studio mode but it won't work in game mode.

Here is what i have:

01game.Players.PlayerAdded:connect(function(player)
02    player.CharacterAdded:connect(function(char)
03        if char then
04            local torso = char:FindFirstChild'Torso'
05            local speed2 = Instance.new("ParticleEmitter", torso)
06            local plr = game.Players.LocalPlayer
07            local char = plr.Character
08            local hum = char.Humanoid
09            local color1 = Color3.new(0.255,0.0820,0.002)
10            local color2 = Color3.new(0.255,0.0720,0.1)
11 
12hum.Running:connect(function(speed)
13    if speed > 30 then
14 
View all 35 lines...
0
Where is the script located? Is FilteringEnabled Enabled? Is this a LocalScript? Are there any errors? Can you provide any more information than what you have not given us? M39a9am3R 3210 — 9y
0
yeah this script is a particle emitter on the torso but it only enables when your walkspeed is 30 or more and it is a script because it don't work as a localscript and it is located in workspace robloxy0123 30 — 9y
0
and yes filteringenabled is enabled robloxy0123 30 — 9y

Answer this question