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

[Answered] Why doesnt my local script fire the event?

Asked by 5 years ago
Edited 5 years ago

local script:

local repstore = game:GetService("ReplicatedStorage")

local remote = repstore:WaitForChild("RemoteEvent")



if game.Workspace.Gravity == 0 then

remote:FireServer()

end

server script:

local rep = game:GetService("ReplicatedStorage")

local remote = rep:WaitForChild("RemoteEvent")



remote.OnServerEvent:Connect(function(player)

game.Workspace.world_kiIIer.HumanoidRootPart.CFrame = CFrame.new(1 ,1 ,1)

print(player.name.." activated")

end)

server script is in serverscriptservice and the local script is in StarterPack

planning to make it a text command but i cant make it work at all

1
because the if statement is only running once theking48989987 2147 — 5y
0
so how do i make it run over and over Gameplayer365247v2 1055 — 5y

Answer this question