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

why Mouse is nil value in my script??? please answer

Asked by 5 years ago
Edited 5 years ago

this script in serverscriptservice and its not working its an event script

001console.script1Beast.OnServerEvent:connect(function(p, Mouse)
002    --creation by missingboshjio
003--for r6
004local a
005local b
006local c
007local d
008local e
009local f
010local g
011local h
012local version = {"1.0"}
013 
014local c = p.Character
015local hum = c.Humanoid
View all 163 lines...
0
Follow DRY. TL;DR mc3334 649 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

parameter can't be mouse. you will get nil.

0
umm its possible just in localscript is Player:GetMouse() but in normal script what that????? MissingBoshjio 22 — 5y
0
@MissingBoshijo if you want to use Mouse.Button1Down so use local script and then fire the event when mouse down Nakama_G 6 — 5y
0
Going along with Nakama_G, I think Mouse gets filtered by Filter Enabled, as well... its not useful to a server event. JasonTheOwner 391 — 5y
Ad
Log in to vote
0
Answered by
TopBagon 109
5 years ago

you can use anything in the parameter but you can't access Mouse from the normal script, you need to do it on a local script instead

Answer this question