|
| 01 Jan 2013 03:32 AM |
Erm. It's a basic [local] script. It works perfectly when testing solo. Yet when I play it on an actual server, it does nothing. I'm sure you master scripters have a reason why.
HeadCam=script.Parent.HeadCamera Char = script.Parent.Parent.Parent.Parent.Name
function Camera() if HeadCam.Value==1 then workspace.CurrentCamera.CameraSubject = game.Workspace[Char].Head workspace.CurrentCamera.CameraType = "Follow" for i = 0.6, 0, -0.01 do wait(0.02) script.Parent.Parent.Parent.Start.Music.Volume=i end script.Parent.Parent.Parent.Start.Music:Stop() HeadCam.Value=0 end end script.Parent.HeadCamera.Changed:connect(Camera)
|
|
|
| Report Abuse |
|
|
| |
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
| |
|
|
| 01 Jan 2013 04:54 AM |
That's not it actually. The WHOLE script (207 lines of it,) is not working. Luckily I only focus on one of the four functions. I don't see why it wouldn't work in a real server...
Char = script.Parent.Parent.Parent.Parent.Name HeadCam=script.Parent.HeadCamera function Warrior() Data = script.Parent.Parent.Parent.Chosen Data.Team.Class.Value=1 Data.Value=1
if Data.Team.Value==2 then for Index, Child in pairs(game.Workspace[Char]:GetChildren()) do if Child:IsA("CharacterMesh") then Child:Remove() end if Child:IsA("Hat") then Child:Remove() end end for Index, Child in pairs(Game.Workspace.ArmorSets.Dantwae.Iron:GetChildren()) do Child:Clone().Parent = game.Workspace[Char] end Data.Parent.PlyrLead.Bg.Visible=true Data.Parent.PlyrLead.PlayerInfo.Visible=true game.Workspace[Char].Torso.CFrame = CFrame.new(-418.5, 123.8, 42.5) HeadCam.Value=1 end
wait(0.5) script.Parent.Visible=false end script.Parent.Warrior.MouseButton1Click:connect(Warrior)
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2013 05:00 AM |
char = game.Players.LocalPlayer
What is HeadCamera? |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2013 05:19 AM |
| add wait() at the beginning of the script. it should be the first fix you try if something doesn't work online. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2013 05:30 AM |
http://www.roblox.com/User.aspx?ID=36354257 Don't shoot him. |
|
|
| Report Abuse |
|
|
|
| 01 Jan 2013 06:16 AM |
| Tried all of the ideas. None worked. What's up with it? |
|
|
| Report Abuse |
|
|