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

What is the mistake with remote event?

Asked by 6 years ago

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!

0
put the model in server storage TheScriptKing 102 — 6y
0
What will that do? How do I fix the remote event so It can fire correctly? BADABOO2016 3 — 6y
0
and yes you must define the remote event User#19524 175 — 6y

Answer this question