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 4 years ago
Edited 4 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

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!

1 answer

Log in to vote
1
Answered by 4 years ago

OK

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

Ad

Answer this question