|
| 27 Jul 2015 05:30 AM |
local PlayingGame = coroutine.create(function() local a = game.ServerStorage.Tsunami:Clone() a.Parent = game.Workspace local b = game.Workspace.Tsunami.WaterKillA local c = game.Workspace.Tsunami.WaterKillB local d = game.Workspace.Tsunami.WaterKillC local e = game.Workspace.Tsunami.WaterKillD local f = game.Workspace.Tsunami.WaterKillE for t = 1, 400 do for _,v in pairs(game.Workspace.Tsunami:GetChildren()) do v.CFrame = v.CFrame * CFrame.new(-4, 0, 0) end end end)
I'm trying to make this 'tsunami' move all at once. However, this script doesn't even work. I've tried a lot of different variations, I've even looked at the roblox wiki (where I got this example from) but they don't seem to work. If you know how to fix this, a reply would be appreciated :D
Tsunami is a model with WaterKillA,B,C,D,E in it. |
|
|
| Report Abuse |
|
| |
|
| 27 Jul 2015 06:20 PM |
| use :SetPrimaryPartCFrame(), :MoveTo(), or :TranslateBy() |
|
|
| Report Abuse |
|
|
| 27 Jul 2015 06:24 PM |
| @fishguy what If I wanted to keep the same c-frame but add -4 to the x axis? would I do :SetPrimaryPartCFrame(Cframe * Cframe(-4,0,0)? |
|
|
| Report Abuse |
|