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

MoveTo will not function as intended?

Asked by
sammiya1 134
7 years ago
--Sammiya1--
local Button = script.Parent
local plr = game.Players.LocalPlayer
local rooms = game.Workspace:WaitForChild(plr.Name.." Room")  
local P1 = rooms.P1
local P2 = rooms.P2
local Stand = rooms.Stand
local Camera2 = rooms.Camera2
local Target2 = rooms.Target2

function mouseClicked()
wait()
game.Players.LocalPlayer.PlayerGui.SoundsOfGuis.SoundClicked:Play()
rooms.Camera1:MoveTo(Camera2.Postion)
rooms.Target1:MoveTo(Target2.Postion)
rooms.Minnie:MoveTo(P1.Position)
wait(0.8)
rooms.Minnie:MoveTo(P2.Position)
wait(0.8)
rooms.Minnie.Torso.CFrame = CFrame.new(Vector3.new(Stand.Position))
Button.Image = "http://www.roblox.com/asset/?id=254130218"
wait(0.5)
Button.Image = "http://www.roblox.com/asset/?id=254130354"

end

Button.MouseButton1Click:connect(mouseClicked)

Not sure why but theres an error saying cframe nil or something. i think i have done all that i can.

0
Need more information, what are you trying to do? PreciseLogic 271 — 7y

Answer this question