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

How do I script a gun, then a target? [closed]

Asked by
Kitorari 266 Moderation Voter
7 years ago

Currently i am attempting to make a Aim-training gun range where depending where you shoot the gun you get a accuracy check.

Im not sure how to make this work though, i mean i could make the target have 5 seperate layers surrounding it, that is affected by heath damage, then when its hit it sets off a timer untill the next target is hit, in which case id have to add a value to act as a timer so like

If workspace.body.torso.touched:connect (function(targethit) then
Do if workspace.body.torso2.touched:connect == true then end
Else
Timer=timer + 10

But im not sure how to make a gun that would work with it.

How do i even make a gun?

Assistance would be great!

Closed as Not Constructive by BlueTaslem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Oeplion 15
7 years ago
Edited 7 years ago

My browser won't let me comment but let's pretend this is a comment:

First, you can not have ifcapitalized. Second, do is not needed for the second line of the script and shall not be capitalized. Third, end is not something that can end the script entirely. Meaning if you want it to shut down the script, use script.Disabled = true Fourth, >else should not be capitalized And the 4th line is upright confusing. You need to define the Variable Time After doing so, let me know and then I can see where your problem is because I'm downright confused.

Ad