|
| 30 May 2015 08:17 PM |
| How to create a client-sided explosion? |
|
|
| Report Abuse |
|
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 30 May 2015 08:20 PM |
Enable Filtering Enabled Create an Explosion via localscript |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 08:22 PM |
That's what I did. Nothing happens.
local Explosion = Instance.new("Explosion") Explosion.BlastPressure = 500000 Explosion.BlastRadius = 75 Explosion.ExplosionType = "NoCraters" Explosion.DestroyJointRadiusPercent = 1 Explosion.Position = script.Parent.Position Explosion.Parent = script.Parent.House |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 30 May 2015 08:37 PM |
| Use BillboardGUIs instead. |
|
|
| Report Abuse |
|
|
| |
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 30 May 2015 08:39 PM |
| Idk, try parenting it to the player's PlayerGui or something. I don't use FE. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 May 2015 09:29 PM |
Filtering Enabled means that only the server can interact with the local, but not vice versa. Disable Filtering for an easier time in scripting.
Okay, we could make a clientside explosion by using a local script.
(local script) local Cam = game.Workspace.CurrentCamera -- Important Plr = game.Players.LocalPlayer -- Also important
local brick = Instance.new("Part") brick.Size = Vector3.new(1,1,1) brick.Transparency = 1 -- Well, you don't want to see the brick right? brick.Anchored = true brick.CanCollide = false local expl = Instance.new("Explosion") expl.Parent = brick brick.Parent = Cam
Above is a working script, what it does is simply parents the part that holds the explosion to the player's camera, which will result in a client-side explosion. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
vacha
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 1993 |
|
|
| 30 May 2015 10:16 PM |
sneaky WHAT are you talking about?? Local clients can communicate with the server via remote events w/ FE on!!!
while true do the do |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 10:18 PM |
| FilteringEnabled stops most changes of the datamodel by clients. There are some whitelisted properties, though. |
|
|
| Report Abuse |
|
|
|
| 30 May 2015 10:19 PM |
| Right, I totally forgot that. |
|
|
| Report Abuse |
|
|
Froast
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 3134 |
|
|
| 30 May 2015 10:31 PM |
Put the explosion in CurrentCamera. It will still be able to kill others if they are in the BlastRadius (if FE is off) but they will not be able to see it. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 30 May 2015 10:37 PM |
| The Only Solution is Too Make You're Place Not FE. |
|
|
| Report Abuse |
|
|