I have a tool that is in starter pack, that when clicked on the map, spawns a car. There is a local script and the model of the car in the tool
I have tried to make the script with remote events but when I play the server cannot see it? Please help.
I am not sure if you are supposed to add a script for the remote event?? Please help. (Dont direct me to wiki, I already tried).
bin = script.Parent function onButton1Down(mouse) local ReplicatedStorage = game:GetService("ReplicatedStorage") local Carspawner = ReplicatedStorage:WaitForChild("Carspawner") Carspawner:FireServer() local model = bin.Plane:clone() model.Parent = game.Workspace model:MakeJoints() wait(1) model:MoveTo(mouse.hit.p) end function onSelected(mouse) mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) end bin.Selected:connect(onSelected)
Thanks!