|
| 02 Feb 2015 08:17 AM |
How could this work with FilteringEnabled?
Debounce = false if LaserVal.Value == true then local Humanoid = Tool.Parent:FindFirstChild("Humanoid") if Handle and Humanoid and Humanoid.Health > 0 then if (Handle.Position - Humanoid.TargetPoint).magnitude <= 1000 then local Part = Instance.new("Part") Part.Anchored = true Part.CanCollide = false Part.formFactor = "Symmetric" Part.TopSurface = 0 Part.BottomSurface = 0 Part.BrickColor = BrickColor:random() Part.Transparency = 0.4 Part.Name = "Laser" Part.Locked = true Part.Size = Vector3.new(1,1,(Humanoid.TargetPoint - Handle.Position).magnitude) Part.CFrame = CFrame.new(((Handle.Position + Humanoid.TargetPoint)/2) + 1 * (Humanoid.TargetPoint - Handle.Position).unit, Humanoid.TargetPoint)
local Mesh = Instance.new("BlockMesh") Mesh.Scale = Vector3.new(0.25,0.25,1) Mesh.Parent = Part
Part.Parent = workspace game:GetService("Debris"):AddItem(Part, 1.5)
Part.Touched:connect(function(Hit) local Humanoid = Hit.Parent:FindFirstChild("Humanoid") if Hit.Parent and Humanoid and Humanoid.Health > 0 and Humanoid.Parent ~= Tool.Parent then tagHuman(Humanoid) Humanoid:TakeDamage(100) Handle.Laser1:Play() end end)
if Debounce == false then Debounce = true Handle.Transparency = 1 Handle.Laser2:Play() for v=1, 10 do Part.Transparency = 0.1 * v wait(0.01) end wait(1) Debounce = false Handle.Transparency = 0 end Part:Destroy() end end
|
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 08:35 AM |
| http://wiki.roblox.com/index.php?title=RemoteFunction_and_RemoteEvent_Tutorial |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 08:40 AM |
Using a RemoteEvent and it still doesn't work.
function onRemote(player, func, ...) if player ~= getPlayer() then return end if func == "LeftDown" then onLeftDown(...) end end
Remote.OnServerEvent:connect(onRemote) |
|
|
| Report Abuse |
|
|
Rellica
|
  |
| Joined: 11 May 2013 |
| Total Posts: 955 |
|
|
| 02 Feb 2015 08:58 AM |
A Client Event will be fired in a Server Script and handled in a local script. In this example the server script will create the RemoteEvent (to avoid issues if you are using FilteringEnabled) and then wait 5 seconds before firing:
wait(5) |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:48 PM |
| That doesn't seem right. I want this to fire right away... |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 02 Feb 2015 02:50 PM |
| Stop reposting this and learn the basics before trying something this advanced. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:52 PM |
| I didn't come here for someone to talk to me like their my daddy. I'm asking for help. Just ignore this post if you got a problem with that. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 02 Feb 2015 02:53 PM |
| No, you're screwing yourself over you don't even know what fe is, you think it stops exploits, that's it. And it doesn't. It stops some, but not all. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2015 02:55 PM |
| It's a better way for the client and the server to communicate. |
|
|
| Report Abuse |
|
|
Ruinable
|
  |
| Joined: 14 Sep 2014 |
| Total Posts: 8903 |
|
|
| 02 Feb 2015 03:36 PM |
It makes it harder for them to communicate dimwit.
Ruinable, Director of the Aegis Accord. |
|
|
| Report Abuse |
|
|