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

Clone part not working on a server script?

Asked by 5 years ago

So i have a localscript wich fires a server script in workspace.(local script is in player,the server script is in workspace) So all the server script does is create a clone of a part from ReplicatedStorage and set its position, and creates a bodyVelocity so it whould fly. The thing is, this works in test, but not in server test or when i uploaded it. The code is not posted, because I don't have the code handy, but i don't thing it's a code error, it dosen't output any errors. The game is FE, but that is why i use a server script in the first place. Any help is appreciated, thanks!

0
I think we need to see the code. Pojoto 329 — 5y
0
I'm telling you, the code is basically just the clone, and the body velocity, no errors, but I will post the code as soon as i get home. tonije123 9 — 5y
0
we stll need to see it though green271 635 — 5y
0
local exec = script.fire local storage = game.ReplicatedStorage exec.OnServerEvent:Connect(function(player) if player.Character.Busy.Value == false then local a = player:WaitForChild("Backpack") local root = player.Character.HumanoidRootPart local chakra = player.Character.Chakra if chakra.Value > 15 then chakra.Value = chakra.Value - 15 local ball = storage.FireballSMALL:Clone() tonije123 9 — 5y

Answer this question