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

Vehicle Seat in a model not working upon Cloned from ReplicatedStorage from tool?

Asked by 5 years ago
Edited 5 years ago

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

01local ReplicatedStorage = game:GetService("ReplicatedStorage")
02local Player = game:GetService("Players").LocalPlayer
03local Raft = ReplicatedStorage:WaitForChild("BoatChassi")
04local Cursor = Player:GetMouse()
05 
06function onActivated()
07    local ClonedRaft = Raft:Clone()
08    ClonedRaft.Parent = workspace
09    ClonedRaft:MoveTo(Cursor.hit.p)
10end
11 
12 
13script.Parent.Activated:connect(onActivated)

If I could get some help with this, that would be great!

Thanks!

1 answer

Log in to vote
1
Answered by 5 years ago

OK

The problem is that it is Local Script. Use server script instead.

Ad

Answer this question