Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make it so a player has an interval between uses of the health boosting ability?

Asked by 8 years ago

It all works besides line 67 which I can't figure out what I need to put there so that a player can not just use the healing ability without any limitations.

Here's the script:

THANK YOU SO MUCH IN ADVANCE!

001-- SETTINGS
002local offset = Vector3.new(40, 80, 0)
003 
004local plr = game.Players.LocalPlayer
005 
006local sg = game:GetService("StarterGui")   
007 
008sg:SetCore("TopbarEnabled", false)
009 
010local mouse = plr:GetMouse()
011 
012local hmnd = plr.Character:FindFirstChild("Humanoid")
013 
014hmnd.MaxHealth = script.MAXHP.Value
015 
View all 108 lines...
0
This script will not work you are accessing "ServerStorage" in a local script. User#5423 17 — 8y
0
I don't think thats the case as it was working earlier Qweeble 5 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Use a bool. Maybe put a bool value in the script. For example

1if script.bool = true then
2--code
3end
Ad

Answer this question