generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Filter Enabled question

Previous Thread :: Next Thread 
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
24 Aug 2015 05:14 AM

So I am trying to run this script. When a person touches another player. When they touch the other player will die. It runs but does not update on server just local. Did I do my FireServer right? Can I not do it like this. If so can you tell me how I can do it.

leftarm.Touched:connect(function(linfect)
if not d1 then
d1 = true
game.Workspace.Scripts.eventfire.piep:FireServer()
local char = game.Workspace:FindFirstChild(player.Name)
local leftarm = char:FindFirstChild("Left Arm")
if leftarm ~= nil then
if linfect.Parent:FindFirstChild("Humanoid") then
local hitp = game.Players[linfect.Parent.Name]
hitp.Alive.Value = false
linfect.Parent.Humanoid.Health = 0
end
wait()
d1 = false
end
end
end)
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
24 Aug 2015 09:18 AM
Bump
Report Abuse
IMAFIRINMAHLAZAR567 is not online. IMAFIRINMAHLAZAR567
Joined: 06 Mar 2013
Total Posts: 237
24 Aug 2015 09:21 AM
If this is on a local script and filtering is enabled then you can't use a local script to change a humanoid's health. Use a server script to change health
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
24 Aug 2015 09:24 AM
Do this on the server, not locally..

while true do the do
Report Abuse
AhtnamasStudio is not online. AhtnamasStudio
Joined: 15 Jan 2014
Total Posts: 1104
24 Aug 2015 10:32 AM
That's why I am using a RemoteEvent. So I can have be activated locally and fire server.
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
24 Aug 2015 10:33 AM
.Touched Event fires serverside as well !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

while true do the do
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image