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

Can someone help me make the script for a radioactive lantern? [closed]

Asked by 8 years ago
Edited 8 years ago

Ive used a find nearest torso script and edited it, but it wont do anything. No output in the script analysis

01local larm = script.Parent:FindFirstChild("Left Arm")
02local rarm = script.Parent:FindFirstChild("Right Arm")
03local human = nil
04function findNearestTorso(pos)
05    local list = game.Workspace:children()
06    local torso = nil
07    local dist = 30
08    local temp = nil
09 
10    local temp2 = nil
11    for x = 1, #list do
12        temp2 = list[x]
13        if (temp2.className == "Model") and (temp2 ~= script.Parent) and game.Players:GetPlayerFromCharacter(temp2)~=nil then
14            temp = temp2:findFirstChild("Right Arm")
15            human = temp2:findFirstChild("Humanoid")
View all 37 lines...
0
Can you post the script pls in a code block. User#5423 17 — 8y
0
Heh free model script. seen this before. RubenKan 3615 — 8y
0
lol Bombsboom 0 — 8y
0
from a rpg kit Bombsboom 0 — 8y
View all comments (3 more)
0
What's it do? How is that different from what it's supposed to do? BlueTaslem 18071 — 8y
0
Not enough information. AstrealDev 728 — 8y
0
Dont ask us to make a free model work for you. You wouldnt even understand what all of this does.. RubenKan 3615 — 8y

Closed as Non-Descriptive by iluvmaths1123 and BlueTaslem

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?