Hello,
I am currently making a Single Player
game, and I'm trying to make it so this tool can spawn in a raft. The tool spawns the raft correctly, and to the place I want it to spawn, however, with that all spawning correctly the actual Vehicle Seat
which is used to drive the Raft is non functional. The vehicle seat works when the Raft is in Workspace
, however when the Raft is cloned from ReplicatedStorage
to Workspace
, the Vehicle Seat doesn't work and is nolonger seatable.
I have a Local Script
Inside the tool
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Player = game:GetService("Players").LocalPlayer local Raft = ReplicatedStorage:WaitForChild("BoatChassi") local Cursor = Player:GetMouse() function onActivated() local ClonedRaft = Raft:Clone() ClonedRaft.Parent = workspace ClonedRaft:MoveTo(Cursor.hit.p) end script.Parent.Activated:connect(onActivated)
If I could get some help with this, that would be great!
Thanks!
OK
The problem is that it is Local Script. Use server script instead.