128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 26 Apr 2014 10:34 PM |
| How can I cause the same effect as a forcefield without the blue sphere? |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 26 Apr 2014 10:53 PM |
function ForceField(Player) local FalsePlayer = Instance.new("Model", Workspace) FalsePlayer.Name = Player.Name Player.Character.Parent = FalsePlayer local FalseTorso = Instance.new("Part", FalsePlayer) FalseTorso.Name = "Torso" FalseTorso.Position = Vector3.new(0, 999999999, 0) Instance.new("ForceField", FalsePlayer) wait(0.03) FalseTorso:Destroy() Player.Character.Humanoid.Jump = true local Connection = Player.CharacterAdded:connect(function(Character) FalsePlayer:Destroy() Connection:Disconnect() end) end
ForceField(Game.Players.Player1) |
|
|
| Report Abuse |
|
|
128GB
|
  |
| Joined: 17 Apr 2014 |
| Total Posts: 8056 |
|
|
| 26 Apr 2014 11:12 PM |
I fixed / fixed up the script (First one didn't disconnect the CharacterAdded function correctly)
function ForceField(Player) ypcall(function() if Player.Character.Parent.Name ~= Player.Name then local FalsePlayer = Instance.new("Model", Workspace) FalsePlayer.Name = Player.Name local FalseField = Instance.new("ForceField", FalsePlayer) local FalseTorso = Instance.new("Part", FalsePlayer) FalseTorso.Name = "Torso" FalseTorso.Position = Vector3.new(0, (10 ^ 9), 0) Game:GetService("Debris"):AddItem(FalseTorso, 0.03) Player.Character.Parent = FalsePlayer Player.Character.Humanoid.Jump = true Connection = Player.CharacterAdded:connect(function(Character) FalsePlayer:Destroy() Connection:disconnect() end) end end) end
ForceField(Game.Players.Player1) |
|
|
| Report Abuse |
|
|