It's a server script
while true do
script.Parent.Touched:connect(function(hit)
game.ReplicatedStorage.Events.TradeEvent:FireServer()
end)
It's a server script
while true do
script.Parent.Touched:connect(function(hit)
game.ReplicatedStorage.Events.TradeEvent:FireServer()
end)
Why are you using a server script for running a Server event? And why are you running a while true do loop on a function? And the fixed script is below.
script.Parent.Touched:connect(function(hit)
--Do trade stuff here
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.