#remote event not working the second time

7 messages · Page 1 of 1 (latest)

chilly slate
#

Server:
local function place(propname, cframe)
local prop = game.ReplicatedStorage.Props:FindFirstChild(propname):Clone()
prop.Hitbox.CFrame = cframe
prop.Parent = workspace.Props
end

game.ReplicatedStorage.Events["place/take"].OnServerEvent:Connect(function(plr,Type,prt,cframe)
print("rrr")
print("this is iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"..tostring(prt))
if Type == "take" then
print("tttttt")
prt:Destroy()
elseif Type == "place" then
place(prt,cframe)
end
end)

tropic kraken
#

May you explain why you're trying to do first?

gleaming shuttle
#

game.ReplicatedStorage.Events["place/take"]:FireServer("place",currentitemname,currentitemcframe)